//导入request.js
import request from '@/utils/request.js'

//活动分类列表
export const categoryListService = () =>{
    return request.get('/category/list')
}

//添加类别列表
export const categoryAddService = (categoryName) =>{
    return request.post('/category/add',{categoryName:categoryName})
}

//删除类别列表
export const categoryDelService = (categoryName) => {
    return request.delete('/category', {params:{categoryName:categoryName}})
}